export default [
    // {
    //     path: '/photo',
    //     component: () => import('@/views/Photo.vue')
    // },
    {
        path: '/',
        redirect: '/logins'
    },
    // 登录页
    // {
    //     path: '/login',
    //     component: () => import('@/views/Login.vue')
    // },
    {
        path: '/logins',
        component: () => import('@/views/logins.vue')
    },
    {
        path: '/logint',
        component: () => import('@/views/logint.vue')
    }
    ,
    {
        path: '/home',
        component: () => import('@/views/home.vue'),
        children: [
            // 局校通知模块
            {
                path: '/home/bureauschool',
                component: () => import('@/views/Home/BureauSchool.vue')
            },
            // 家校互动一级路由以及子路由
            {
                path: '/home/homeschool',
                component: () => import('@/views/Home/HomeSchool.vue'),
                children: [
                    // 通知管理 yhh
                    //重定向设置 mxh
                    {
                        path: '/home/homeschool',
                        redirect: '/home/homeschool/notificationlist'
                    },
                    {
                        path: '/home/homeschool/notificationlist',
                        component: () => import('@/views/HomeSchool/NotificationList.vue')
                    },
                    // 通知类型管理 yhh
                    {
                        path: '/home/homeschool/notificationtype',
                        component: () => import('@/views/HomeSchool/NotificationType.vue')
                    },
                    // 投票管理 mxh
                    {
                        path: '/home/homeschool/vote',
                        component: () => import('@/views/HomeSchool/Vote.vue')
                    }
                    ,
                    //请假记录 mxh
                    {

                        path: '/home/homeschool/leaverecord',
                        component: () => import('@/views/HomeSchool/Leaverecord.vue')
                    },
                    //学生请假设置 mxh
                    {

                        path: '/home/homeschool/leaversetting',
                        component: () => import('@/views/HomeSchool/LeaveSetting.vue')
                    }
                    ,

                    {
                        //健康中心 xss
                        path: '/home/homeschool/gowork',
                        component: () => import('@/views/HomeSchool/GoWork.vue')
                    },
                    {  //出勤统计 xss
                        path: '/home/homeschool/workcount',
                        component: () => import('@/views/HomeSchool/WorkCount.vue')
                    },
                    {   //学生请假审核 xss
                        path: '/home/homeschool/leavereview',
                        component: () => import('@/views/HomeSchool/LeaveReview.vue')
                    },
                    // kwl 相册管理
                    {
                        path: '/home/homeschool/photolist',
                        component: () => import('@/views/HomeSchool/PhotoList.vue')
                    },
                    // kwl 相册列表
                    {
                        path: '/home/homeschool/examinelist',
                        component: () => import('@/views/HomeSchool/ExamineList.vue')
                    },
                    // kwl 审核设置
                    {
                        path: '/home/homeschool/examineset',
                        component: () => import('@/views/HomeSchool/ExamineSet.vue')
                    },
                    {//zcg 评价权限
                        path: '/home/homeschool/ea',
                        component: () => import('@/views/HomeSchool/EvaluationAuthority.vue')
                    },
                    {//zcg  评价列表
                        path: '/home/homeschool/em',
                        component: () => import('@/views/HomeSchool/EvaluationManagement.vue')
                    },
                    {//zcg  出勤点名
                        path: '/home/homeschool/dm',
                        component: () => import('@/views/HomeSchool/DianName.vue')
                    },
                    {//zcg 考勤
                        path: '/home/homeschool/qj',
                        component: () => import('@/views/HomeSchool/QinJi.vue')
                    },
                    {//yh 学申请假列表
                        path: '/home/homeschool/studentLeavelist',
                        component: () => import('@/views/HomeSchool/StudentLeaveList.vue')
                    },

                ]
            },
            //消息统计
            {
                path: '/home/messagestatistics',
                component: () => import('@/views/Home/MessageStatistics.vue'),
                children: [
                    // 因为这些是路由出口，其实是同级，不存在同层次问题，但是写在另外一个文件夹中了。但是还是同级。所以注意文件路径：：：
                    {   //消息发布概况 xss
                        path: '/home/messagestatistics/summessage',
                        component: () => import('@/views/MessageStatistics/SumMessage.vue')
                    },
                    {   //消息发布列表 xss
                        path: '/home/messagestatistics/sendmessage',
                        component: () => import('@/views/MessageStatistics/SendMessage.vue')
                    },

                    // mxh 消息统计
                    {   //学校月消息统计 zcg
                        path: '/home/messagestatistics/schoolsort',
                        component: () => import('@/views/MessageStatistics/SchoolSort.vue')
                    },
                    {   //老师月消息统计 zcg
                        path: '/home/messagestatistics/teachersort',
                        component: () => import('@/views/MessageStatistics/TeacherSort.vue')
                    },
                    // 重定向 mxh
                    {
                        path: '/home/messagestatistics',
                        redirect: '/home/messagestatistics/summessage'
                    }

                ]
            },
            //用户统计
            {
                path: '/home/userstatistics',
                component: () => import('@/views/Home/UserStatistics.vue'),
                children: [
                    // 学生列表 mxh
                    {
                        path: "/home/userstatistics",
                        redirect: '/home/userStatistics/useroverview'
                    }
                    ,
                    {
                        path: '/home/userStatistics/schoollist',
                        component: () => import('@/views/UserStatistics/SchoolList.vue')
                    },
                    {
                        path: '/home/userstatistics/parentlist',
                        component: () => import('@/views/UserStatistics/ParentList.vue')
                    }
                    ,
                    {
                        path: '/home/userStatistics/useroverview',
                        component: () => import('@/views/UserStatistics/UserOverview.vue')
                    },
                    {
                        path: '/home/userStatistics/teacherlist',
                        component: () => import('@/views//UserStatistics/TeacherList.vue')
                    },


                ]
            },
            {
                path: '/home/schoolstatistics',
                component: () => import('@/views/Home/SchoolStatistics.vue'),
                children: [//zcg 学校概述

                    {
                        path: '/home/schoolstatistics',
                        redirect: '/home/schoolstatistics/sg'
                    },
                    {
                        path: '/home/schoolstatistics/sg',
                        component: () => import('@/views/SchoolStatistics/SchoolGai.vue')
                    },
                    {
                        path: '/home/schoolstatistics',
                        redirect: '/home/schoolstatistics/sg'
                    }
                ]
            },
        ]
    },
    {// zcg 评语发布
        path: '/pingjiafabu',
        component: () => import('@/views/HomeSchool/Pingjiafabu.vue'),
    },
    {//zcg 考勤状态确认
        path: '/kaoqin',
        component: () => import('@/views/HomeSchool/KaoQin.vue'),
    },
    {
        path: '/index',
        component: () => import('@/views/index.vue'),
        children: [
            {
                path: '/index/homes',
                component: () => import('@/views/Home/Homes.vue')
            },
            {
                path: '/index/:error(.*)',
                component: () => import('@/views/NotFound.vue')
            },

        ]
    },
    {
        path: '/editnotification',
        component: () => import('@/views/EditNotification.vue')
    },
    {
        path: '/:error(.*)',
        component: () => import('@/views/NotFound.vue')
    },
    // kwl 我的相册
    {
        path: '/myphoto',
        component: () => import('@/views/MyPhoto.vue')
    },
    //kwl 发布相册
    {
        path: '/publishphoto',
        component: () => import('@/views/PublishPhoto.vue')
    },
    // 局校通知发布 mxh
    {
        path: '/massagebureau',
        component: () => import('@/views/MassageBureau.vue')
    },
    // 发布带药提醒
    {
        path: '/sendreminders',
        component: () => import('@/views/SendReminders.vue')
    },
    {
        path: '/kaoqin',
        component: () => import('@/views/HomeSchool/KaoQin.vue')
    }
]



